package edu.gu.hajo.gcl.cmd.impl;

import edu.gu.hajo.gcl.interp.IInterpreter;

public final class SubOpCmd extends AbstractCmd {

	public SubOpCmd(IInterpreter interp) {
		super(interp);
	}

	@Override
	public void  execute() {	
		// TODO #args == 2
		int result = Integer.parseInt(args.get(0)) - Integer.parseInt(args.get(1));
		interp.setResult(String.valueOf(result));
	}
}
